<?php
/**
 * ExtGroupingStore class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtGroupingStore extends ExtStore
{
    /**
     * Gets the value of ExtJS groupField property
     * @return String 
     */
    public function getGroupField()
    {
    	return $this->getConfig("groupfield");
    }

    /**
     * Sets the value of ExtJS groupField property
     * @param String $value 
     */
    public function setGroupField($value)
    {
    	$this->setConfig("groupfield",$value);
    }

    /**
     * Gets the value of ExtJS groupOnSort property
     * @return Boolean 
     */
    public function getGroupOnSort()
    {
    	return $this->getConfig("grouponsort");
    }

    /**
     * Sets the value of ExtJS groupOnSort property
     * @param Boolean $value 
     */
    public function setGroupOnSort($value)
    {
    	$this->setConfig("grouponsort",$value);
    }

    /**
     * Gets the value of ExtJS remoteGroup property
     * @return Boolean 
     */
    public function getRemoteGroup()
    {
    	return $this->getConfig("remotegroup");
    }

    /**
     * Sets the value of ExtJS remoteGroup property
     * @param Boolean $value 
     */
    public function setRemoteGroup($value)
    {
    	$this->setConfig("remotegroup",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'groupfield' => 'groupField',
            'grouponsort' => 'groupOnSort',
            'remotegroup' => 'remoteGroup'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'groupchange' => array('store','groupField')
        ));


        $this->setXType('groupingstore');
        $this->setXClass('Ext.data.GroupingStore');
    }    
}
?>